# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-portalocker
pkgver=1.7.0
pkgrel=0
pkgdesc="An extended version of portalocker to lock files in Python using the with statement"
url="http://portalocker.readthedocs.io/en/latest/"
arch="noarch"
license="PSF-2.0"
depends="python3 py3-babel py3-imagesize py3-requests py3-snowballstemmer"
makedepends="py3-setuptools py3-sphinx"
checkdepends="py3-pytest py3-docutils py3-pytest-cov"
source="https://pypi.python.org/packages/source/p/portalocker/portalocker-$pkgver.tar.gz"
# Tests requires deprecated Python package pytest-flakes and pytest-pep8
options="!check"
builddir="$srcdir/portalocker-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="84bd07ca772703cdd4062753ca72538c28fc97e0bd90fe6530964a020b5c09351a00761dddf4b39e08fc528afa8f6d2c7537e95c39cf467e66c6191b769239e0  portalocker-1.7.0.tar.gz"
